package com.example.friend.entity.DTO;

import com.example.core.entity.PageQueryDTO;
import com.example.friend.enums.ExamStatus;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class ExamQueryDTO extends PageQueryDTO {

    private String title;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String endTime;

    //0 进行中  1 历史竞赛 2.所有竞赛
    private Integer type;

    // 默认竞赛已发布
    private Integer status = ExamStatus.PUBLISHED.getStatus();

}